package cn.stylefeng.guns.modular.modules.mapper;

import cn.stylefeng.guns.modular.modules.entity.ModuleInfo;
import cn.stylefeng.guns.modular.modules.model.params.ModuleInfoParam;
import cn.stylefeng.guns.modular.modules.model.result.ModuleInfoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 模块表 Mapper 接口
 * </p>
 *
 * @author dong
 * @since 2023-04-21
 */
public interface ModuleInfoMapper extends BaseMapper<ModuleInfo> {

    /**
     * 获取列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    List<ModuleInfoResult> customList(@Param("paramCondition") ModuleInfoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ModuleInfoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    Page<ModuleInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") ModuleInfoParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author dong
     * @Date 2023-04-21
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ModuleInfoParam paramCondition);

	List<Integer> getTasksIds(@Param("p") ModuleInfoParam moduleInfoParam);

}
